/**
 * 
 */
package com.bbva.gptf.back.transformador;

import org.springframework.core.convert.converter.Converter;

import com.bbva.gptf.back.dominio.Tgpt012Gestor;
import com.bbva.gptf.back.dominio.Tgpt031OrdenDeuda;
import com.bbva.gptf.dto.bean.Orden;

/**
 * @author mtellezg
 * 
 */
public class TransformadorTgpt031OrdenDeuda implements
		Converter<Orden, Tgpt031OrdenDeuda> {

	Tgpt031OrdenDeuda tgpt031OrdenDeuda;
	Tgpt012Gestor cdUsuario;

	@Override
	public Tgpt031OrdenDeuda convert(final Orden source) {
		// TODO Auto-generated method stub
		tgpt031OrdenDeuda = new Tgpt031OrdenDeuda();
		cdUsuario = new Tgpt012Gestor();
		cdUsuario.setCdUsuario(source.getCdGestor());
		tgpt031OrdenDeuda.setCdOrdenDeuda(source.getCdOrden());
		tgpt031OrdenDeuda.setCdGestor(cdUsuario);
		tgpt031OrdenDeuda.setCdValorBmv(source.getCdValorBmv());
		tgpt031OrdenDeuda.setCdEmisora(source.getCdEmisora());
		tgpt031OrdenDeuda.setCdSerie(source.getCdSerie());
		tgpt031OrdenDeuda.setFhOperacion(source.getFhOperacion());
		tgpt031OrdenDeuda.setTpOperacion(source.getTpOperacion());
		tgpt031OrdenDeuda.setCtTitulo(source.getCtTitulo());
		tgpt031OrdenDeuda.setImPrecio(source.getImPrecio());
		tgpt031OrdenDeuda.setToImporte(source.getToImporte());
		tgpt031OrdenDeuda.setPcTasa(source.getPcTasa());
		tgpt031OrdenDeuda.setCtTituloPost(source.getCtTituloPost());
		tgpt031OrdenDeuda.setImPrecioPost(source.getImPrecioPost());
		tgpt031OrdenDeuda.setToImportePost(source.getToImportePost());
		tgpt031OrdenDeuda.setPcTasaPost(source.getPcTasaPost());
		tgpt031OrdenDeuda.setTxJustificacion(source.getTxJustificacion());
		tgpt031OrdenDeuda.setStValidPolitica(source.getStValidPolitica());
		tgpt031OrdenDeuda.setStOrden(source.getStOrden());
		tgpt031OrdenDeuda.setTmUmo(source.getTmUmo());
		tgpt031OrdenDeuda.setFhUmo(source.getFhUmo());
		tgpt031OrdenDeuda.setCdUsuarioUmo(source.getCdUsuarioUmo());
		tgpt031OrdenDeuda.setStNominal(source.getStNominal());
		tgpt031OrdenDeuda.setImValorNom(source.getImValorNom());
		return tgpt031OrdenDeuda;
	}

}
